Class ConfigureSoundTileAction
- java.lang.Object
-
- page.codeberg.terratactician_expandoria.bots.actions.Action
-
- page.codeberg.terratactician_expandoria.bots.actions.ConfigureSoundTileAction
-
public class ConfigureSoundTileAction extends Action
ConfigureSoundTileAction is an Action which can be used to reconfigure Sound tiles. It only works in Creative Mode
-
-
Field Summary
Fields Modifier and Type Field Description floatamplifyMultiplied with output of sound tileCubeCoordinatecoordCoordinate of tile to be configured.booleanenabledEnable sound tile playbackjava.util.List<SoundTile.Wave>wavesList of configured waves, that are played back by the sound tile
-
Constructor Summary
Constructors Constructor Description ConfigureSoundTileAction(CubeCoordinate coord, java.util.List<SoundTile.Wave> waves, boolean enabled, float amplify)Generates an action that reconfigures a sound tile.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetName()Name of the action in the json package.booleanisLimited()Returns true if the action is limited in challenge mode, by the action cap.java.lang.ObjectserializeData()Serializes the data of the Action.
-
-
-
Field Detail
-
coord
public CubeCoordinate coord
Coordinate of tile to be configured.
-
waves
public java.util.List<SoundTile.Wave> waves
List of configured waves, that are played back by the sound tile
-
enabled
public boolean enabled
Enable sound tile playback
-
amplify
public float amplify
Multiplied with output of sound tile
-
-
Constructor Detail
-
ConfigureSoundTileAction
public ConfigureSoundTileAction(CubeCoordinate coord, java.util.List<SoundTile.Wave> waves, boolean enabled, float amplify)
Generates an action that reconfigures a sound tile.- Parameters:
coord- Coordinate of the targeted Sound tilewaves- Soundwaves to be played back by the tileenabled- If the sound tile should produce soundamplify- Factor which is multiplied with Tile output
-
-
Method Detail
-
getName
public java.lang.String getName()
Description copied from class:ActionName of the action in the json package.
-
serializeData
public java.lang.Object serializeData()
Description copied from class:ActionSerializes the data of the Action. This may returns a JSONObject or String or an other supported datatype.- Specified by:
serializeDatain classAction- Returns:
- JSONObject or String
-
-